package com.yf1706.bean;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;


/**
 * The persistent class for the rec_template_apply_post database table.
 * 
 */
@Entity
@Table(name="rec_template_apply_post")
@NamedQuery(name="RecTemplateApplyPost.findAll", query="SELECT r FROM RecTemplateApplyPost r")
public class RecTemplateApplyPost implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="apply_id")
	private int applyId;

	@ManyToOne
	@JoinColumn(name="dep_id")
	private Dep dep;

	@ManyToOne
	@JoinColumn(name="post_id")
	private PostSetting postSetting;

	//bi-directional many-to-one association to RecTemplate
	@ManyToOne
	@JoinColumn(name="template_id")
	@JSONField(serialize=false)
	private RecTemplate recTemplate;

	public RecTemplateApplyPost() {
	}

	public int getApplyId() {
		return this.applyId;
	}

	public void setApplyId(int applyId) {
		this.applyId = applyId;
	}

	public Dep getDep() {
		return dep;
	}

	public void setDep(Dep dep) {
		this.dep = dep;
	}

	public PostSetting getPostSetting() {
		return postSetting;
	}

	public void setPostSetting(PostSetting postSetting) {
		this.postSetting = postSetting;
	}

	public RecTemplate getRecTemplate() {
		return this.recTemplate;
	}

	public void setRecTemplate(RecTemplate recTemplate) {
		this.recTemplate = recTemplate;
	}

}